package lesson.Objectstream;

import java.io.*;

public class ObjectStreamDemo2 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("Day12\\src\\lesson\\Objectstream\\a.txt"));

        User o = (User) ois.readObject();
        System.out.println(o);
        ois.close();
    }
}
